function toBase64() {
	var file = document.querySelector('input[type=file]').files[0];
	var reader = new FileReader();
	reader.onloadend = function() {
		$("#base64Img").attr("style", "display:inline-block");
		$("#base64Img").attr("src", reader.result);
		console.log(reader.result);
	}
	if (file) {
		reader.readAsDataURL(file);
	}
}


function fileChange(e) {
	console.log(e)
}
